import request from '@/utils/request'

export function getListAPI(params) {
  return request({
    url: 'api/moveWareHouseOrder/queryPalletSublistForInventory',
    method: 'get',
    params
  })
}

// 新增退库回产线的移库单
export function createReturnOrderAPI(data) {
  return request({
    url: 'api/moveWareHouseOrder/addReturnMoveOrder',
    method: 'post',
    data
  })
}

// 创建移库单
export function createMoveOrderAPI(data) {
  return request({
    url: 'api/moveWareHouseOrder/addMoveWareHouseOrder',
    method: 'post',
    data
  })
}

export function getInventoryListAPI(data) {
  return request({
    url: 'api/inventory/inventoryView',
    method: 'post',
    data
  })
}

export function getPortListAPI(data) {
  return request({
    url: `api/configurations/getPortList/${data}`,
    method: 'post',
    data
  })
}

